@import "./sass/_variable.scss";
@import "./sass/_base.scss";
$proGreen: #009f4a;
#profile {
  //标题栏
  /*.profile-title {
    @extend .pos_r;
    @extend .text_center;
    font-size: 18rem / $baseFontSize;
    h1 {
      font-weight: normal;
      font-size: inherit;
      line-height: 1.8;
    }
    .ion {
      @extend .pos_a;
      font-size: 22rem / $baseFontSize;
      color: $white;
      @include verticalMiddle;
    }
    .ion-ios-arrow-left {
      left: $emptyWidth;
    }
    .ion-ios-more {
      right: $emptyWidth;
    }
  }*/

  //个人档案外包装区域
  .profile-head {
    @extend .pos_r;
    background: url("../images/profile_bg.png") no-repeat center bottom;
    background-size: cover;
    background-color: $proGreen;
    color: $white;
    padding: $emptyWidth;

    //编辑按钮
    .btn-edit {
      @extend .pos_a;
      color: $white;
      padding: 5rem / $baseFontSize 15rem / $baseFontSize;
      padding-left: 28rem / $baseFontSize;
      line-height: 1;
      font-size: 14rem / $baseFontSize;
      border-radius: ((5rem / $baseFontSize) * 2 + (14rem / $baseFontSize)) / 2;
      right: 18rem / $baseFontSize;
      bottom: 16rem / $baseFontSize;
      background: url("../images/icon_edit.png") no-repeat 8rem/$baseFontSize center;
      background-size: 14rem / $baseFontSize;;
      background-color: rgba(0, 0, 0, 0.4);
    }
  }

  //个人简要信息
  .profile-info {
    @extend .flex;
    @extend .align-item;
    padding: 45rem / $baseFontSize 0;
    img {
      display: block;
      width: 55rem / $baseFontSize;
      height: 55rem / $baseFontSize;
      border-radius: 100%;
      border: 1px solid $white;
      margin: 0 22rem / $baseFontSize;
    }
    & > div {
      @extend .flex-1;
      width: calc(100% - 5.5rem - 1.2rem * 4);
    }
    h3, p {
      @include overflowEllipsis;
      width: 100%;
      line-height: 1.6;
      font-size: 14rem / $baseFontSize;
    }
    h3 {
      font-size: 18rem / $baseFontSize;
      span {
        display: inline-block;
        @extend .pos_r;
        font-weight: normal;
        line-height: 1;
        padding: 4rem / $baseFontSize 8rem / $baseFontSize;
        //margin-left: $emptyWidth;
        border-radius: (14rem / $baseFontSize + 8rem / $baseFontSize)/2;
        font-size: 14rem / $baseFontSize;
        &:before {
          @extend .pos_a;
          content: ' ';
          left: 0;
          top: 0;
          width: 200%;
          height: 190%;
          -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
          -webkit-transform: scale(0.5, 0.5);
          transform: scale(0.5, 0.5);
          border: 1px solid #fff;
          border-radius: (4rem * 2 + 14rem / $baseFontSize) /2;
        }
      }
    }
  }

  //详细信息列表
  .weui-cells {
    background-color: $white;
    line-height: 1.41176471;
    font-size: 14rem / $baseFontSize;
    overflow: hidden;
    @extend .pos_r;
    &:before {
      @include scaleTop;
    }
    &:after {
      @include scaleBottom;
    }
  }
  .weui-cell {
    padding: 17rem / $baseFontSize 15rem / $baseFontSize;
    @extend .pos_r;
    @extend .flex;
    @extend .align-item;
    @extend .ft14;
    &:before {
      @include scaleTop;
      left: 15px;
    }
  }
  .weui-cell__bd {
    @extend .flex-1;
    color: #666;
  }
  .weui-cell__ft {
    text-align: right;
    color: $mainColor;
  }

  //操作列表
  .weui-grids {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    background-color: $white;
    &:before {
      @include scaleTop
    }
    &:after {
      @include scaleBottom;
    }
  }
  .weui-grid {
    position: relative;
    float: left;
    padding: 32rem / $baseFontSize 10rem / $baseFontSize;
    width: 33.33333333%;
    box-sizing: border-box;
    &:before {
      @include scaleRight;
    }
    &:after {
      @include scaleBottom;
    }
  }
  .weui-grid__icon {
    width: 28px;
    height: 28px;
    margin: 0 auto;
    text-aglin: center;
    img {
      display: block;
      //width: 100%;
      height: 100%
    }
    & + .weui-grid__label {
      margin-top: 5px;
    }
  }
  .weui-grid__label {
    display: block;
    text-align: center;
    color: #000000;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .noData {
    font-size: 20rem / $baseFontSize;
    color: $mainColor;
    text-align: center;
    line-height: 3;
  }
}

